<!-- 基本信息 -->
<div class="monitor-tab-div">
	<div class="m-panel">
		<div class="m-panel-title">
			<span>基本信息</span>
		</div>
		<div class="m-panel-body base-info-div">
			<form class="bs-example form-horizontal xs-form">
	            <div id="base_info_monitor_div">
	            	<div class="form-group">
	                    <label class="col-lg-2 control-label">监控器名称：</label>
	                    <label class="col-lg-4 control-label tl" data-id="monitorName"></label>
	                    <label class="col-lg-2 control-label">监控器类型：</label>
	                    <label class="col-lg-4 control-label tl" data-id="monitorTypeName"></label>
	                </div>
	            </div>
	            <div id="asset_info_monitor_div">
	            	<div class="form-group">
	            	</div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">被监控资产名称：</label>
	                    <label class="col-lg-4 control-label tl" data-id="assetName"></label>
	                    <label class="col-lg-2 control-label">资产类型：</label>
	                    <label class="col-lg-4 control-label tl" data-id="assetTypeName"></label>
	                </div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">IP：</label>
	                    <label class="col-lg-4 control-label tl" data-id="mainIp"></label>
	                    <label class="col-lg-2 control-label">管控域：</label>
	                    <label class="col-lg-4 control-label tl" data-id="securityDomainName"></label>
	                </div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">操作系统：</label>
	                    <label class="col-lg-4 control-label tl" data-id="osTypeName"></label>
	                    <label class="col-lg-2 control-label" style="display: none;">物理位置：</label>
	                    <label class="col-lg-4 control-label tl" data-id="locationCbName" style="display: none;"></label>
	                </div>
	            </div>
	        </form>
	    </div>
	</div>
	<!-- TCP信息 -->
    <div class="m-panel">
        <div class="m-panel-title">
            <span>TCP信息</span>
        </div>
        <div class="m-panel-body base-info-div">
            <form class="bs-example form-horizontal xs-form">
                <div id="tcp_info_monitor_div">
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">TCP连接最大个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="tcpmaxconn"></label>
	                    <label class="col-lg-2 control-label" style="padding-left: 0">TCP当前处于建立状态的连接个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="currestab"></label>
	                </div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">TCP主动连接次数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="activeconn"></label>
	                    <label class="col-lg-2 control-label">TCP被动连接次数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="passiveconn"></label>
	                </div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">TCP连接请求失败次数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="attfail"></label>
	                    <label class="col-lg-2 control-label">TCP连接重置次数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="estbresets"></label>
	                </div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">接收到TCP报文个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="insegs"></label>
	                    <label class="col-lg-2 control-label">发送的TCP报文个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="outsegs"></label>
	                </div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">TCP重传报文个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="retranssegs"></label>
	                    <label class="col-lg-2 control-label"></label>
	                    <label class="col-lg-4 control-label tl" data-id=""></label>
	                </div>
	            </div>
            </form>
        </div>
    </div>
	<!-- TCP信息 -->
    <div class="m-panel">
        <div class="m-panel-title">
            <span>UDP信息</span>
        </div>
        <div class="m-panel-body base-info-div">
            <form class="bs-example form-horizontal xs-form">
                <div id="udp_info_monitor_div">
	                <div class="form-group">
	                    <label class="col-lg-2 control-label">接收到的UDP报文个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="inDatagrams"></label>
	                    <label class="col-lg-2 control-label">发送的UDP报文个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="outDatagrams"></label>
	                </div>
	                <div class="form-group">
	                    <label class="col-lg-2 control-label" style="padding-left: 0">接收到未知名端口的UDP报文个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="noportCount"></label>
	                    <label class="col-lg-2 control-label">接收到的错误的UDP报文个数：</label>
	                    <label class="col-lg-4 control-label tl" data-id="inerrorCounts"></label>
	                </div>
	            </div>
            </form>
        </div>
    </div>
	<!-- 接口面板 -->
	<div class="m-panel">
		<div class="m-panel-title">
			<span>接口面板</span>
		</div>
		<div class="m-panel-body" style="height:auto;min-height:350px;">
			<div id="interface_info" class="col-lg-12 h-all"></div>
		</div>
	</div>
</div>

<div class="monitor-tab-div" data-type="event"></div>


<script type="text/javascript">
$(document).ready(function (){
require(['/js/plugin/monitor/catagory/ruijie_rsr.js'] ,function (ruijie_rsr){

var urlParamObj = index_query_param_get()

view_init()

function view_init()
{
    urlParamObj.time = $("#query_time_label").text()
    urlParamObj.inputTime = $("#query_time_label").text()
    urlParamObj.edId = urlParamObj.assetId
    ruijie_rsr.base_info(urlParamObj)
    ruijie_rsr.tcp_info(urlParamObj)
    ruijie_rsr.udp_info(urlParamObj)
    ruijie_rsr.interface_render($("#interface_info") ,urlParamObj)
}

window.index_monitor_init = function ()
{
    view_init()
}

});
});